Refinement-based guidelines for developing structured programs
نویسندگان
چکیده
The development of structured programs is carried out either using bottom-up techniques, or top-down techniques; we show how refinement and proof can be used to help in the top-down development of structured imperative programs. When a problem is stated, the incremental proof-based methodology of event B starts by stating a very abstract model and further refinements lead to finer-grain event-based models which are used to build an algorithm. In this paper, the main idea is to consider each procedure call as an abstract event of a model corresponding to the development of the procedure; generally, a procedure is specified by a pre/post specification and then the refinement process can lead to a set of events, which are then combined to obtain the body of the procedure. It means that the abstraction corresponds to the procedure call and the body is derived by the refinement process. The refinement process may also use recursive procedures and it supports the top-down refinement. The technique is illustrated by the sorting problem.
منابع مشابه
Developing an Intervention Guidelines for Social Health Promotion Based on the Social Capital Theory
Introduction: Social capital can influence social health so it is essential to consider their interaction for health promotion. Guidelines for applying social capital theory in social health promotion programs will help practitioners to intervene step by step and make sure that all components of social capital theory will consider in health promotion programs. This article presents the results ...
متن کاملFaculty Development Programs at Shahid Beheshti University ; Insufficient Strengths
Abstract Introduction: Faculty development programs include all types of systematic support to improve faculty members as teachers, researchers, and citizens of universities, professions, and larger societies. Developing systematic and innovative faculty development programs is among the ways of improving the academic system. Due to the significance of such programs and their effective role in ...
متن کاملA Relational Basis for Program Construction by Parts
Program construction by parts consists in tackling a complex specification one component at a time, developing a partially defined solution for each component, then combining the partial solutions into a global solution for the aggregate specification. This method is desirable whenever the specification at hand is too complex to be grasped in all its detail. It is feasible whenever the specific...
متن کاملRefinement types for specification
We develop a theory of program specification using the notion of refinement type. This provides a notion of structured specification, useful for verification and program development. We axiomatise the satisfaction of specifications by programs as a generalised typing relation and give rules for refining specifications. A per semantics based on Henkin models is given, for which the system is pro...
متن کاملRefinement-Based Guidelines for Algorithmic Systems
The correct-by-construction approach can be supported by a progressive and incremental process controlled by the refinement of models of programs. We explore the EVENT B modelling language to illustrate the expression of our methodological proposal using proof-based patterns called guidelines. The main objective is to facilitate the correctby-construction approach for designing classical sequen...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2007